package cn.silver.module.authority.controller;

import cn.silver.framework.mybatis.controller.BaseController;
import cn.silver.module.authority.domain.SysTenantUser;
import cn.silver.module.authority.bean.TenantUserBean;
import cn.silver.module.authority.service.ISysTenantUserSerivce;
import cn.silver.module.system.param.UserParam;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 */
@Validated
@RestController
@RequiredArgsConstructor
@Tag(name = "权限管理-租户管理-租户成员管理")
@RequestMapping("/system/tenant/user")
public class SysTenantUserController extends BaseController<ISysTenantUserSerivce, SysTenantUser, UserParam, TenantUserBean> {
    @Override
    @Resource
    public void setBaseService(ISysTenantUserSerivce baseService) {
        this.baseService = baseService;
        this.setCode("authority:tenant");
        this.setTitle("权限管理-租户管理-租户成员管理");
    }
}
